<?php 
namespace App\Models\Cxhshop;

use Illuminate\Database\Eloquent\Model;
// use App\Models\Base\CxhshopBase;
// use App\Models\Cxhshop\Dispatch;
// use App\Models\Cxhshop\Income;

// use Illuminate\Support\Facades\DB;
// use App\Models\Cxhshop\ShopMember;


class Trade extends Model { 

    public $timestamps = false;//这里表示的是不添加时间
    protected $table = 'trade'; 
    public  $arr = array();

    
    private $_order_data = array();


    public static function test(){
    	$query = self::query();

	
    	
    	//$s = $query->forPage(0,10)->get()->toArray();
    	
    	
    	// print_r($s);
    }


    public function s(){
    	$s = $query->paginate(10);
    	return $s;
    	 //->join('ims_ewei_shop_goods as a', 'a.id', '=', 'b.goodsid')
            //    ->where('b.orderid','=',$v['id'])->get($goodsfield);

    		// $users = User::whereHas('posts', function($q){
		//     $q->where('created_at', '>=', '2017-11-29');
		// })->get();
		 //->whereIn('id', [1, 2, 3])
    }
    
  
    
}